package com.xuan.webfinally.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author gyuxuan
 * @since 2025-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("slope_device_status")
@ApiModel(value="SlopeDeviceStatus对象", description="")
public class SlopeDeviceStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备序列号，唯一")
    @TableField("device_sn")
    private String deviceSn;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "供电电压(V)")
    @TableField("power_voltage")
    private Double powerVoltage;

    @ApiModelProperty(value = "太阳能板电压(V)")
    @TableField("solar_voltage")
    private Double solarVoltage;

    @ApiModelProperty(value = "电量剩余百分比(%)")
    @TableField("battery_percent")
    private Double batteryPercent;

    @ApiModelProperty(value = "设备所处温度(°C)")
    @TableField("temperature")
    private Double temperature;

    @ApiModelProperty(value = "设备所处位置经度")
    @TableField("longitude")
    private Double longitude;

    @ApiModelProperty(value = "设备所处位置纬度")
    @TableField("latitude")
    private Double latitude;

    @ApiModelProperty(value = "是否是4G网")
    @TableField("is_4g")
    private Boolean is4g;

    @ApiModelProperty(value = "4G网络信号强度(dBm)")
    @TableField("signal_4g")
    private Double signal4g;

    @ApiModelProperty(value = "NBIoT网络信号强度(dBm)")
    @TableField("signal_nbiot")
    private Double signalNbiot;

    @ApiModelProperty(value = "北斗信号强度(dBm)")
    @TableField("signal_beidou")
    private Double signalBeidou;

    @ApiModelProperty(value = "固件版本号")
    @TableField("firmware_version")
    private String firmwareVersion;

    @ApiModelProperty(value = "传感器状态信息JSON字符串")
    @TableField("sensor_status_json")
    private String sensorStatusJson;

    @ApiModelProperty(value = "功放状态（预警喇叭）")
    @TableField("amplifier_status")
    private Boolean amplifierStatus;

    @ApiModelProperty(value = "部门id")
    @TableField("dept_id")
    private Integer deptId;


}
